var http = require('http');
var url = require('url');
var server = new http.Server();

server.on('request',function(req,res){
  res.writeHeader(200,{"content-type":"text/html"});
  res.end("Hello,Node!");
  console.log("Welcome visit "+ url.parse(req.url).pathname);
});

server.listen(3000);

console.log("Your server is started at port 3000");